Documentation and removed unnecessary IndexFunction interface