Temperature effects and Performance optimization in Battery systems