Add argparse support, accelerators, exit handling