Model-initialize function

Constructor for a Model object.