Merge kav2k's pull request
Mode manager with exaple mode
Merge pull request #4 from asmaps/master

Mode manager + kav2k's pull request