added reading the data_files Corrected a bug in the read_data_perimeter.m