use c++ version of rot_mat_derivatives

this replaces the fortran version
remove the obsolete folder from mindist
a bit of clean up to aatopology stuff
add some comments and documentation