Improvements to matlab & modelica export