Honestly, if the car just woke up one day and ran right for a brief period, you need to look for something mechanical. Problems with programming are (very) rarely corrected for on an intermittent basis. That sounds like a bad sensor or sensor plug to me, but without seeing/feeling it in person its hard to diagnose.