kMaxPages has been set as a package wide global variable to appease R CMD check
Fixed bug with argument order in PaginateQuery()
Minor Doc update