got a debug console working for the listener
added a console.log for testing
typofix
fixing minor bugs