using parsec to parse modelTemplate, added constraint
model validation is now done in Core