Added logging

fixes #3