Refactor process simulation.
Merge branch 'master' of github.com:joewing/ms3