Added a yaml parser to load models from templates.