initial commit for MMIR library code (version 3.0beta)