Magnetohydrodynamic modeling of interplanetary CMEs