Templates: Extended the documentation.

- Added chapters 1 to 6 to "doc/templatesupport.txt",
  outlining the basic usage of template libraries.
- Minor corrections.