Refactored dinodex based on Franco's comments

Use a better name than `hash`. What does the `hash` contain?