Text this: Design and control of a single phase synchronous inverter for microgrid