fixed typos in insertFooter and insertPageCounter methods
get return value of page