Added logging
Merge pull request #23 from isuftin/master

Added logging