Improve Simulink model generator