modified some logging/error handline
Merge pull request #3 from jputney/master

modified some logging/error handline