Adding comments to all class methods
Fixed a bug with the energyLevel calculation