document mmfile code