Fixed pagerank and updated search functions