Fixed the pages iteration and gets the title, putting them in the Pages object.gets all the page's text as well. Need to figure out duplicate words in index