Fixed a bug where PDFs on their own (not concatenated) weren't formatted. Set it up so that it chooses for the PDF the most recent version of each file, in case different files were submitted at different attempts.