My battery management and controller libraries