Add files to gitignore
Fix bug with sourceIndex