Event triggered pulses

Worked on adding externally triggered pulses to Controller. Still has to
be checked.
Controller event triggered pulses

Squashed some bugs when setting up the controller.
Also tested the event triggered pulses.
Changed to ext. triggered controller
Merge remote-tracking branch 'origin/master' into GeneticAlgorithm