Codebook and R script

Adding these files to the repository as well.