MAIN FUNCTIONS OF BATTERY MANAGEMENT SYSTEM BMS