In the future, try a hard reset (hold power and home untill it reboots), and or holding the volume up button while the phone boots (safe mode) before doing a full restore. The 5.1.1 resore/jailbreak was a good option in this case anyway, though. Glad you got it sorted out.