refactored logging such that predefined messages are replaced by utility functions or inlined in logger calls
Merge branch 'master' into logging
converted many prints to logging calls; refactor more file access operations to use shared utility function.
Merge pull request #142 from xrotwang/logging

Refactored prints into logging calls and file access to use shared utility functions