made script to make text files out of matlab files