update from mattjhayes

Refactor that did some code clean-up and added control via config file of logging levels per module