Page rank working and code cleaned up.