Added routes and methods for "template".  Tweaks to Model classes.