Fix checkcpp warnings in Simulation and States.
Add parameters initialization into constructors.