Preliminary version of OFM (Melco) format and API cleanup