fix some mistakes
logging and arguments

use —setLevel=[0-5] to set the loglevel on the command line