fixed PWM and Prime
Added Triangle, yet to finish