refactor, add debug and verbose flags to command line
functions default to DEBUG, VERBOSE = False, False