Add document for type class methods.
Add header document of templates to generate base Query.