[Add,FIx,Refactor] SimulatorImpl(EnergyMeter, initialTS, finalTS) implemented, previous bug was fixed and code refactoring.