refactor names: Index->Coord; add comments