Added incref in LM_interface QueryResult object, to avoid problems with freed memory. Minor problems of indentation and path names