Code review and minor formating changes. Thanks to lonewolfwilliams for button up/down events.