add plotting of results
move generation of trials list outside
add getDofsFromModel.m