Switched to int for pageNumber and pageSize throught, as using long seemed a bit too far fetched.
Switched to int for currentLine, as using long seemed a bit too far fetched.
- Added extra constructor to suppor specifying total number of pages on creation.
- Fixed potential bug where an NPE was possible if the fetch function supplied returned null.