code p0107 is a map sensor code
code p0122 is a tps code
code p0302 is a cyl. number 2 misfire
code p0304 is a cyl. 4 misfire
code p0300 is a random cyl. misfire
code p1399 doesn't come up as a correct code.
To me it sounds like when you were changing shit, you unplugged stuff, and turned the key to the on position, hense what your doing is "showing the computer" that the sensors aren't there, by having them unplugged. I see you messed around with the distributor. check your wires. Make sure they are plugged in all the way, and in there correct firing order. once you have checked all of that, and made sure your sensors, are plugged in. Clear the codes. and test drive.