Assume range limit when it is omitted
Fix various off-by-one errors
Merge pull request #92 from andylolz/69-range-limit

Assume range limit when it is omitted - fixes #69.