Loggs added

Fixes #16
Merge pull request #22 from cleandart/feature/logging

Added logging to library.