codebook, and minor typos