Added example to the documentation comments above add_index
Added acceptance and unit tests for single attribute indexing