Adding codebook and dataset