fix pep8
better reader and tests