refactored logging functions.. added a bit more logging
Merge pull request #84 from creighton/morelogging

refactored logging functions.. added a bit more logging