Fuller trigger & strobe support

Polarity of the trigger can be set, and strobe on pin 1 is supported.  Extension to pins 2 and 3 would be easy, but it's rarely used.
Some of these whitespace changes seem a bit random. Is your editor converting between tabs and spaces somehow?