minDij(): more cleaning up internal functions & roxygen documentation