Modification of the methodes setCapacitys and setEnergyType into addCapacitys and addEnergyType