Updating Files and creating Index