Major refactoring of HTMLNode for clarity.
Error correction.