refactoring
started unit testing, fixes #9
returning a number, fixes #8
0.1.0