adding dom documentation