added better error handling to tools and changed module crypto to archive_crypto to avoid otp name clashes