Add argparse arguments for auth and some minor changes