Ruff Idle

I've had problems with my Contour. 4-cylinder about 48K, with P0171 OBDII code. This translates into "Engine running too lean". So far I have changed the fuel filter and also the spark plugs (OEM Specs). When I have the A/C on and the car in gear it runs ruff, close to stalling but never does. I have just pulled off the injectors but have not tested anything at this point. Any recommendations? Can't find any loose or cracked vacuum lines.