Feature/standard logging

Implements #21 along with pep8 compliance and some fixes that pyflakes was complaining about.