pep8, fixed some things, reworked the logs