The document discusses injecting wind power into the electric grid and improving power quality. It proposes connecting a static compensator (STATCOM) with a battery energy storage system (BESS) at the point of common coupling to mitigate power quality issues caused by fluctuating wind power. The STATCOM maintains the source voltage and current in phase and supports the reactive power demand of the wind generator and load. Simulation results show the STATCOM cancels harmonic parts of the load current and maintains unity power factor, fulfilling power quality standards.