Added argparse (WORKING) and better teardown with errors (WIP).