refactoring of robustness to accept a generic distance metric in robustness calcuation. also updated fold-ops to check to see if folding tools exist when loading up ns