Adding codebook and result file