Complying with -pedantic and added a newline to the end of the file.
Took the opportinity to also remove some unnecessary whitespace
Added the (trivial) contents of the PDF functions.
Reorganized things a bit now that I have a few files that aren't sorters but things like tools and library functions.