update R script comments