I've made some updates to this file so that I can read DF's .mat input files. It is not ready to run yet.