Removes dead files. Adds new ones.