code improvement
cleanup
improved simulation::run algo, groundwork for loops
implemented branching and loop groundwork
cleanup
cleanup