Changed the energy model. Moved all simulation logic to Simulation class. Mote range is taken under account.