Text this: Implementation and simulation of a synchronverter