Corrected page title handling.
Merge pull request #13 from pjackson28/master

Corrected page title handling
Fixed endunless typo.
Merge pull request #14 from pjackson28/master

Fixed endunless typo