Adds proper logging and log directory

Fixes #3