commenting and action listeners

did some commenting for the buttons and added listeners