Codebook and some more explanation of the code.