Add logging
Merge pull request #1 from monsat/add-logging

Add logging