formatting code book

formatting each variable as an item