Added error checking

Also added jail folder location, and changed the tarring operation. Also made it so when we're editing, the jail name, type and location cannot be changed.