Generating docs for structures