add sine pulse
fix some mistakes
add Square Pulse