Fixes #4 Range checking for the index was off by 1.
Merge remote-tracking branch 'origin/master'