Cleans up Thesis file.