Cleaning up filenames and removing output pdfs