asynchronous condition and consequence functions, fixing priority and on switch
changing example to match new format with callbacks
Merge pull request #1 from munimkazia/master

Async and fixed priority and on switch