4.5: Added putPrettyHeader and putPrettyFooter functions