fix pep8 issues
finish logging
Merge pull request #1 from alonbl/log

Log