fixes #3

added regression test

added better regression test

fixed pep8 bugs

another pep8 fix

and that's why we unit test ;/
Merge pull request #4 from foxx/patch-1

fixes #3