Update types.h: add descriptions of the structures