Text this: Design and Control of a Battery Charger/Discharger Based on the Flyback Topology