more tests and linting.
relating to #2
Merge pull request #31 from kmpm/testing

more tests and linting.