Function main() for indexer and a .gitignore pattern

A couple of small fixes that got lost during rebase.