State Machine Demo

Adding a state machine implemented as a class with a little bit of demo code in SIMULINK and GUIDE.