Implemented button listener example.
Commented and minor fix.