Updated m-file for reading in data