added voltage differences
added calculation of best combination