updated the encryption and decryption flows so that the files get moved from the safe folder to the unsafe folder and back again. Also fixed some bugs.