Add code book to document variables