Structural and API changes in decrypt procedure

Now there is a function exposed which decrypts a particular file.
Script can be called from command line providing the file to decrypt as
an argument