Changed: even more clean code (curly braces related #gigle)
Changed: helper method 'isSelfClosing' now checks the existence of a value
Fixed: in method 'addChild' the missed level incrementation for the new child added