Pull Switch Code added

Added code for operating a pull switch - detects each pull of chord.