Added IndexVal to class docs and updated index_functions.md to explain template implementation.