Start swap of argv with argeparse module.
Revise script to use argparse
Revise and add tests.