add a logger and update code to use it
Merge pull request #3 from jakubsvehla/logger

Add a logger