version bump
fix a couple bugs, add a couple tests, a bit of PEP8