Adding behaviors model and API, expanding templates.