Added a bit to NetworkSharedPower.class

Added safety measures to getEnergy and getMaxEnergy.
Added a method to get the amount of room to store more energy