Add a fatal function
Add initial ElementDocument bindings