Added additional testing code for pagerank as well as support for pagerank output