put back explicit linking to math lib, because it wasn't a default on Fedora;
starting to retire original test code;
more thoughts on future direction;
better output filenames;
some diagnostic output;
expanded comments;