Fix pep8 strings and add some documentation