Work on trace scaling and peak tool.
Large changes to make Qt interface work again.