DESIGN AND ANALYSIS ON DIFFERENT FUNCTIONS OF BATTERY ENERGY STORAGE