Handle non-integer page sizes

Also, do some error checking in finding to the page element, to produce
more meaningful error messages.

Closes #7.
Version 0.0.6