Finished code for data gathering

Data gathering in search engine should be complete, now working
primarily on refining and the final returned value.