Upgraded command line options to use argparse module
Moved assignment of parameter B