Added header guards
Replaced bindTriggers with the new unpack magic