Refactors getTextContent return value
Minor fixes for the jsdocs and removing unused members.
Merge pull request #4144 from yurydelendik/api-doc

Misc fixes for the API docs