Innovations in battery management systems