fix format of output from seq_hap_distances
clean-up of initial distance functions