Added codebook howto (and bugfix)