Logging-feature.
Move functions added by Dennis as methods in the class.
Merge pull request #9 from dethegeek/logging

Logging-feature. Closes #4