Bit of refactoring to get the indent level down
Comment and logging improvements
Moved logging setup back into the class.

This way we can use the part's name: nicer.
pep8