Update config parsing and add switchtime option

- use convenience method to cast the options
- configurable sleep delay when switching workers
Improve logging

- optional file logging
- adjustable console ouptut log level
- log algo score from TMB