DinoDex refactor

Refactored DinoDex based on comments from first pull request.
maybe make this private?