Fixed the font sizes of the headers and footers in the documentation
Minor refactoring