Modified inheritance hierarchy to match DOM model, implemented more W3C DOM methods, added tests.