changed hasChildNodes and hasAttributes to methods in class Node

Tentative fix for issue #2