Updated trigger mechanism

Including ability to send triggers via serial port