Merge pull request #5 from DigiTechs/master

Improved thread scheduling
Removed DigiTechs stupidity (Pointer to static class? Really?) Added Event:wait
Removed more DigiTechs stupidity. (Loading null userdata instead of per-state globals)
Beginnings of an Enum system