encryption complete
Reorganize code. Implement decryption