add distance graph and update of files