#161 improve logging output format, and use appending to logging file
removed some unneccesary debug statements