added argparse function
Cut the encode function down into multiple functions. Error if simplecrypt is not installed.