File cleanup and updating