I went for a drive today and it was fine. On my way back home, the car wouldn't go over the 2000 rpms again. I shut down the car and restarted. It was fine. On my way home, CEL came on again. I checked the computer and it came back
P1502
P0507
These are the two I have now. I saw a post here that is similar to what I'm experiencing
http://986forum.com/forums/showthread.php?t=6197
This person solved his P1502 by replacing his throttle body. The P0507 is also related to this. I'm going to check for leaks today and also tap on the MAF to see if that does anything. If I can't find leaks or the rpms don't change, I think I will be ordering a throttle body and hopefully it will get rid of both codes.