add debug mode

* pass in any arguments on command line to enable debug mode