Added warning about function call overhead from C
Added support for adding/removing events to be detected on a pin