updating gitignore
refactor index build as promises, so we can use Promise.all to know when they're all done