improved exception handling. added detatched GPG signatures
separating restore operation into its own script