Changed algorithm for energy distribution with capacitor banks.
updated version to 17.