Gets rid of unnecessary files, adds necessary ones