added logging, command line parameters. ycorrected readme