Changed debugging methods into a toString method
Create DocumentBuilder so the search engine does not have to read in files