more pythonic
added logger with debug log
whitespace and tabs clean up
Merge pull request #9 from MartinStolle/master

more pythonic & added logger