DOM refactoring, tuple ADT cache
Merge pull request #9 from dunetje/master

DOM