Well after reading on the forum the P0171 can be caused by an inoperative EGR valve. If I remember correctly I sucked on the egr valve and the engine did not stumble indicating the valve is clogged or broken. So tomorrow I will be cleaning the EGR passages and checking the solenoid. Funny thing is when I asked the guy i bought the car from (also a ford mechanic) he said nothing was wrong with the car.

Also How do i rerun ECM quick test?