Added documentation for the rms functions