Base class functionality

Simple abstract class and a dispatcher prototype.
New functions, versioning and bug fixes

Added 2 extern variables, a couple of new functions and bug fixes
States, Events, Simulation

Addes states, events and a very basic simulation