added onConsoleMessage documentation