Minor revision
renamed variables
added codebook draft