this is a *very* intermediate commit

It should have everything plugged in to the ipu OK, and format the frequency tables appropraitely, but it's not pretty and probably needs a moderate reorg.  Still, I don't want this code just sitting on my laptop.