Battery Charger/BMS system