Lots of changes made to this. It now creates an encrypted config if necessary, checks for correct decryption, and a bunch of other fun stuff. Plus comments!