Add gitignore, preferGlobal, bin, and make index executable