changed syntax for whether an object is None type
typo
added comment about test code values
added print statements for timing of random-pages query
refactored, cleaned code
tweak for server