Added template library

I manually added the template library (its user guide is inside "extras" dir).