A p1345 is a camshaft/crankshaft correlation. This means your timing is way off. The SES will only come on if the timing is out +/- 13 degrees so you are WAY out you need to be at 0. If you have a way to watch engine data(scan tool), You can set the timing that way. With the engine at an idle you need to look at "CMP retard", That value is where you timing is set. Turn the dist a little each way and get it back to zero. Every time you move the dist you have to snap the throttle to get the new reading. If you dont have scan tool acess you are screwed. Anyways a missfire code is P0300 P0301 P0302, etc.
, your joking, right? I guess that could clear the codes but only because it fried everything. 

