Added debug levels and command line option to set default debug level.