After a moderate amount of stop-and-go driving and after the vehicle has set for about 5-10 minutes, I'll start it and it acts like it's flooded. If I try to drive it, it acts like a bad fuel filter. Let it cool for about 10 minutes with the hood up and everything's normal. Codes stored were P0303 and P0351 pointing to an ignition problem. Internet search suggested that it probably wasn't the coil rail and suggested adjusting the cam position sensor. I've broken and reconnected all connections, they look fine. I haven't used my cooling spray to test individual components to see if I might have a heat sensitive coil/sensor/whatever. Advice?