Fixed bugs to deal with file exclusion in distance calculation. Now indeces keep track on file exclusion and appending of symmetrci elemets is performed correctly.