indexing changed to bulk.

~23% speedup on my computer.
Merge pull request #8 from sadam36/master

Bulk indexing