Cleaning the files for submission