Replaced dirac pulse with hann shaped pulse
Fixed a plotting bug