Updated docs to explain that end index is exclusive (fixes #50)