Added codebook and update R file

Codebook was added

R file updated due to changes to tidy data file format