Updated R script, README, and CodeBook markdown files