Implement simulator.
Merge pull request #9 from objectiser/monaction

Implement simulator.