Doc fixes &misc in Page class

* Resolve all PHPStorm's (many) errors and warnings
* Refuse to return directly from get_metadata
* Move a couple of large,clunky arrays out of function declarations
Merge pull request #54 from Jarry1250/pageclass

Doc fixes &misc in Page class