Add comments in four R code files