added documentation to all the R functions
merged description