Need help with bad running 5.0 and trouble codes

93 LX, 5.0, T-5. Has 109,000 miles on it. Two weeks ago I had the tranny out to replace the throwout bearing. The only electrical components that I had unplugged were all the conections to the trans and I unscrewed the O2 sensors from the h-pipe. I never unplugged them, just let them hang. Got everything back together and within 20 minutes of driving it threw two codes. A 91 and either a 32 or 33. Autozone says 1 is O2 sensor and the other is EGR related. The car seems down on power and some days (cold days) it backfires right after I first start driving it. After I get on it a few times the backfire goes away. Also, just noticed that it was running real flat until I get the accelerator pedal to a certain point and then it takes off. What could be wrong with the car? It's funny how all this stuff is going wrong and I didn't even touch the engine and I don't believe I could have damaged the O2 sensors. Please Help.
 
Code 33 - Insufficient EGR flow detected.
Look for vacuum leaks, cracked vacuum lines. Check to see if you have 10” of vacuum at the EGR vacuum connection. Look for electrical signal at the vacuum regulator solenoid valves located on the rear of the passenger side wheel well. Using a test light across the electrical connector, it should flicker as the electrical signal flickers. Remember that the computer does not source any power, but provides the ground necessary to complete the circuit. That means one side of the circuit will always be hot, and the other side will go to ground or below 1 volt as the computer switches on that circuit.

See the following website for some help from Tmoss (diagram designer) & Stang&2Birds (website host)

http://www.veryuseful.com/mustang/tech/engine/images/fuel-alt-links-ign-ac.gif

http://www.veryuseful.com/mustang/tech/engine/images/88-91eecPinout.gif

Code 41 or 91 - O2 indicates system lean. Look for a vacuum leak or failing O2 sensor.

The computer sees a lean mixture signal coming from the O2 sensors and tries to compensate by adding more fuel.

"When the mixture is lean, the exhaust gas has oxygen, about the same amount as the ambient air. So the sensor will generate less than 400 Millivolts. Remember lean = less voltage.

" When the mixture is rich, there's less oxygen in the exhaust than in the ambient air , so voltage is generated between the two sides of the tip. The voltage is greater than 600 millivolts. Remember rich = more voltage.

Here's a tip: the newer the sensor, the more the voltage changes, swinging from as low as 0.1 volt to as much as 0.9 volt. As an oxygen sensor ages, the voltage changes get smaller and slower - the voltage change lags behind the change in exhaust gas oxygen.

Because the oxygen sensor generates its own voltage, never apply voltage and never measure resistance of the sensor circuit. To measure voltage signals, use an analog voltmeter with a high input impedance, at least 10 megohms. Remember, a digital voltmeter will average a changing voltage."
Charles O. Probst, Ford fuel Injection & Electronic Engine control

Measuring the O2 sensor voltage at the computer will give you a good idea of how well they are working. The computer pins are 29 (LH O2 with a dark green/pink wire) and 43 (RH O2 with a dark blue/pink wire). Use the ground next to the computer to ground the voltmeter.
 
After I put the new engine in all of a sudden I started getting a code 41 also. I think my O2 sensors are original with 175k and I wasnt exactly careful with them when I pulled everything out. It has a surging idle, dies frequently, doesnt catch revs, and has a miss/slight surge at part throttle. Probably going to get new sensors today.