removed need for set_num_qoi in classes derived from model. Also have created tests for aposterori based spasre grids. They seem to be working. Also allowed an opts argument to be passed to matlab calls when using matlab model