added State constructor for Simulator
merged Kalle's comments