add codebook and reamde