Refactored formatting logic

Printing a given section now takes a format string rather than a pretty format boolean.