in response to #102, removed the +1 and updated the unit tests to test against manual computations on the example from the readme.
Merge pull request #103 from kkoch986/master

in response to #102