Jail fixed

Jail should now function properly and is properly commented.