added some comments, fixed small bug

before there was a problem that if you pressed Confirm multiple times,
the print statements would show up more, found this to be an issue with
having an extra line of code that shouldn't have been there in Question.
Accidentally added extra actionListeners to the confirm button every
time you clicked it, fixed that