command line argument --debug now switches from logger level info to logger level debug.
also code cleanup