completed local storage conversion

- new storage mechanism allowed me to rewrite a significant portion of
the recursive lookup for element uniqueness.  it now works much more as
intended with less code bloat.  initial tests show better element lookup
and name generation :)
- fixed a few minor issues and added better comments in a few places