Add lots of doc for page.stat
Remove redundant doc for private fn
Factor model things out into page.model
Refactor page.model a bit