Added basic logging. Fixes #12