tweaking legend
begins adding topic selection
fixes indentation
updates formatting
makes switching possible