AC MICROGRID WITH BATTERY ENERGY STORAGE MANAGEMENT UNDER GRID