WIP: template registration, finishing API docs
WIP: Documentation for template registration