Added beginning and end methods.

Update domy-element.