modelparse function

Parse model specification text