Update docs and fix index operations