small comment in class cursor
adding a getMessageMethod in the PrologParsingException class
added ab onQueryDisposed method in the QueryListener class and other minor modifications