Removing old files and adding correct index