Commit R scripts
More corrections in chapter 2