Maybe, perhaps, it works now. Need to test other modules.

cout log lines left in for future logging purposes (needs log4cpp)