fixed mismatched use of nodeName and tagName
Merge pull request #4 from yanhick/fix-nodeName-tagName

fixed mismatched use of nodeName and tagName
Implement layout data structures
Implemented layout