added cleanup to pagerank script