Refactor ref/hash retrieval to be less buggy
Add todos
More descriptive var names
rm toStrings() that were masking missing "utf8"s