completely refactored simulation setup
Merge remote-tracking branch 'origin/master'