Added -debug option to command line