Instead of printing use the logging framework.
Merge pull request #3 from thedrow/patch-1

Instead of printing use the logging framework.