adding documentation for types