Split Codebook

Created a seperate file for CodeBook.