Feature/templates for models

Fixes #55