Added documentation Rd files for two functions