refactor main.py to parse arguments in a utility argutils.py and added 2 unit tests