pep8
added support for raw data and json file logging