fixed parsing of command line options

- script now runs and can show options
- display log level on startup