Minor fixes

Added better handling of the selection via legend, more persistent. also
starting to work on styles and configurable dimensions.