renamed all listeners, removing prefix Sample. Also, the listeners now are using logging instead of System.out. Also did code formatting.