fix button sequence controller (variables were flipped)
edge detect event works again (restarted computer)
pwm stopped working, but no code change (probably needs restart)
added button sequence routines for clearing sequences (unnecessary?)