Modification of read_files_sm4.m