cleared out old code in comments
flipped the way button states are reported to the app
changed button timer counter to 16 bit int and cleaned up comments