added better comments in page, fixed getAllPages

Will continue to monkey around with the getAllPages function to get it
to return the pages by level, as it is anything more than 3 tiers deep
(including root) will start scrambling the order
Note strictly a problem but would be nice.