Add code comments for how the layout example metadata is generated