change page detection to allow leading zeros
Merge pull request #25 from albig/master

change page detection to allow leading zeros (again)