Added documentation to R code