Ben's Edits

Mostly just a small tidy up.  Only as far as densequal.  Simplified
paths, made argument names unambiguous, streamlined functions.