added comments and fixed button press issue.