Thoroughly document the mapper module.

lib/mapper.js
	-Add documentation comments to the `mapper` module header, and
	all internal functions.