INTEGRATION AND IMPLEMENTATION OF DISTRIBUTED BATTERY ENERGY STORAGE