Output and Codebook

Includes tidy data output and codebook