minor changes and an indexing example added

minor changes