add code book and tidy data