Refs #34 - Fix error in offset calculation.
Refs #34 - Fix error in page count calculation.