added setting for pulling the gpio up or down
-fixed problems with the edge detection
-added option to "desensibilize" edge detection