There's a source code example for saving HMP and MDL in the SDK - so it shouldn't be much of a problem?