add logging
Merge pull request #1 from nwlunatic/add_logging

add logging