Implemented Encryption and Compression

Implemented Encryption and Compression. Made some changes to code fixing
up a few spelling mistakes and such