architecturing, linking changes

Prettied up the io code. Characterized the line bug: the links exist,
but only the last one is drawn.