adding code book template and merging data sets