Fixing documentation for registerListener.