Improved debug/verbose output

refactored debug output. Now all is set by using `verbose = true` in the config file instead of manually uncommenting code.

Also moved to platform independent code, from Windows only