Add metadata and a visual indicator to newly created HeadingCells. Fix minor bugs.