Added simulation.

Simuation can be run and logged from simulate.py.