Hierarchical layout progress.
Minor cleanup.
Added bounding boxes into the dom hierarchy.