adding r file and codebook