changes to vctsmObj.m to handle multiple examples; not tested yet