php class for converting data into page set fixed. (influenced by http://search.cpan.org/dist/Data-Pageset/lib/Data/Pageset.pm)