more tests
add docstrings to all tests
apply autopep8, fix pyflakes