Add documentation for functions and types.