handle gaps correctly
docstring
parse args, some error checking, write output