Add bubble markups and additional markup data.
Ruby code cleanup.