Reorganize documentation.
Improve template inheritance documentation.