Code 14 is the one that I'd tackle first. The TFI module has a signal it sends to the computer called PIP (profile I(nductor?) Pickup) which notes that the distributor rotor is turning. There is a plug that is removed to disable PIP when you want to set the initial timing manually by distributor position. It is located hanging out of the harness of wires from the drivers side inner fender to the intake manifold area of the engine. It has a rectangular (mine anyway) plug with a jumper wire that can be removed from a socket to disable PIP. A squirrel (must be...) ate the jumper on my car, and that set timing to whatever position the dist was set at.
If you are missing PIP, it is the jumper fallen out or the TFI is not working, or the wires are bad. If it is intermittent, loose jumper, loose TFI connections, or pickup problems, you may have your timing wander all over the place.
The EGR vent fault might be a bad solenoid. I have two. One supplies vacuum to the EGR diaphragm, the other locks the vacuum in or dumps it to atmosphere. If the vent didn't vent, you could be getting EGR fed to the engine even at idle. A check to see if it is affecting how the engine runs is to disconnect the vacuum line to the diaphragm and plug with a golf tee. See if it idles and runs better. If so, check the solenoids, wires and vacuum lines.
tom