Add methods loadDocument, queryDidFinishGathering:, loadData: