Use logging instead of print

Fixes #4