fixed some bugs

fixed the sim value and the indegree methods.  Also fixed the format of
bestPages when the query is not found