A bad coolant sensor could also be causing the 172 code. The 157 could be caused by oil from your K&N. I would replace the coolant sensor first(it's cheap)and I would also clean the MAF sensor with some contact cleaner(BE CAREFUL!). Get the codes erased and see what happens from there.