finished changes to index and added gitignore file