Added test file. Some code cleanup.
Plain vanilla pagerank done.