housekeeping and bug squashing.  cleaning-up the density contour generator hack to select appropriate levels from the contour surface.  other small fixes.