dom/element: improve #add_class and #remove_class
utils: add some documentation
dom/node: some code cleanup
dom/node: cleanup and add documentation