Updated codebook to handle formatting issues