Close file, formatting fixes, and cleanup imports.  Sending a file that is already there still not working