Changes functions for encrypt and decrypt

Starting code for encrypt and decrypt, with bug  - still not working
Documentation

Documentation using Doxygen