pep8 fixes
added a logger to logging
removed unused imports
added requirements.txt