add license to listener
Fix warnings by using const char*