On a trip back home from work my 2005 ford escort experienced a loss of power on hills which required me to accelerate to high rpms to regain some amount of power. It also stalled while driving and stalled at a stop a few times. I just read the codes and have P0171, P0191, P2004. I started the vehicle and let it warm up, shut it down and started again with the following codes showing up: P0171, P0191, P0304, P0316, P2004. Is there a sequence of attack to solve this issue. I also just changed the valve cover gasket, boots and plugs because of oil from the valve cover in the spark plug wells. Any direction would be greatly appreciated.