Fixed formatting of codebook