update codebook and add R code file