write test for commandline arguments
move arg parser to own function
coverage 67%