Before doing anything else, I would disconnect the neg battery cable to clear the codes, then reinstall and start the car. This way you will be able to tell whether you had an intermittent problem that caused the car to go into limp mode, or if it is something bigger that needs attention.