Code cleanup
Adding index directory to git ignore.
Misc cleanup.