Added wave generation code for boost converter