Refactored "from" logic

- ->from() now corresponds to the Document Class
- ->nodeType() corresponds to nodeType