LiFePO4 energy storage system