Added external call to header file
Finally working for encrypting
Decryption now also working
Cleaning up code