Implemented logging setup

Fixes #19