made logger log to files, changed command line switches