Add a battery lib
small conf changes