Add indexCreate example for issue #255

Also fixes a couple typos