fixing the page count to make sure we always have an int
doc tweaks