More documentation

Finished documenting R functions for the day.