Minor markup changes and class additions for legend.