Update documentation for ranges.expand() and ranges.contract()