added support for graphics and file output to matlab_ode template