Fixes coverage, pep8 and adds docs