Numerous updates.

Split Tool into ToolView and ToolController.
Added TypeFrequenciesChart.