added plot of dutycycle and currentripple