final running code for mif.
updating a few files. including longer time series in miffing example. pf now working better, mif still not.