Added outfun and outfundata arguments to matrixpls.sim