Cleanup: trailing whitespace, filename, temp file