removed more unused code, formatting tweaks
fixed loss of information in typeview sort

this was root of problem whereby some rectangles would (mysteriously) be
black.