docs($templateFactory): adds docs for $templateFactory