changed the main driver execution. added some new logic to process the
loop for calculations. started updating the simulator code.