updated to use bonescript library for pin interrupts