pass options
Merge pull request #2 from reonomy/2-pass-options-to-createIndex

pass options to createIndex