codebook, readme updated, code updated also