changed argv to argparse; added ability to input arguments from file