update Rd to reflect changes in R code