Added listener code as well as Logger

This class is now static..