added verbose switch to command line tool