C# port of Miro Samek's Quantum Framework including his excellent  implementation of a hierarchical state machine.