initializing the trigger pins as output pins
introduced a trigger test; fixed a bug in trigger-interrupt; generalized
some test preparation functions; removed unused variable;