Made reading edit scripts more memory-efficient by adding code for creating and freeing edit_info structs and freeing strings in edit_info structs