Many changes from ptha, auxpar, and topotools branches Revised

This PR fixes the outstanding testing problems from #83.