Simulator

Simulator architecture and algorithms.