Moved common code to abstract base class.
Moved access to the initial state as well
Merge branch 'feature/refactor_ctmc_system' into develop