5.0.1 is the most current firmware, you don't need anything to upgrade/downgrade to it, just download the firmware, Option click upgrade on iTunes and that's it.
Note that the backups that you did while on 5.1 won't work on 5.0.1 (most of the time they do, but occasionally they give some issues)