modify main program to test
fix distributed_mfree* to distributed_mfree