PEP8 Fixes

Shouldn't be to controversial. I ran flake8 and did some of the commits. Also added a few tests, and fixed a few problems with the docstrings in geometry.