docs(element): add in-code documentation for methods on element