Fixed: do not add a "1" at start of document. Changed: put page number in the middle of the footer instead of as "p.pageNumber" at the top right of a page