Added the code to include pagerank and numviews to document object