Rates and outputs now update correctly. Debugging print statements removed.
'mtt rc sfun mexglx' creates a valid S-function "rc_sfun.mexglx" which
runs correctly in Simulink.
Algebraic solver code has not yet been added.
Inertial switches still don't work.