fixed some issues executing gpg. Fixed issue exiting too early. Fixed issue saving original file instead of new one.