Adds new files and cleans up existing files