finished code for encryption and decryption, removed test class, added comments for methods