Updated scripts to handle multiple pulses

We are now passing in a matrix as "inputPulses" where each row describes
a pulse sequence.