JavaSim refactoring

added reset button