Improved mf.h/cpp by adding "init" and "updates" options