TPS problems are common to many cars but I don't know about Contours. Clean the MAF first. It is at least free and will only help. Be gentle though. A faulty TPS can cause all sorts of havock. If you can afford it then I would repalce it.
Jon