added argparse for args isntead of sys.argv