Half wave plate module updated and working
simulation for adding in pi/2 pulses