Fix command line handling.
Improve the debug switch.
Skip empty lines in log file.