Mod number argument, add function documentation.

index.js
	-Add documentation comments to all functions.
	-Modify `interpolateLineRange()` handling of its `number`
	argument to treat it as the *total* number of points, which is
	much clearer to the end user (currently, it was the total number
	of points minus 1).