added pagerank implementation and other updates