implemented argparse for command line arguments