http://www.obd-codes.com/p0171 could be a bad maf. or the fuse blew. #21 iirc.

the po300 is misfires. you need a tune up, or the cat is clogged up.

did the cel flash when you floored it and it fell on its face?