New notes and tiny changes to R code