added c & octave interfaces to d ric mhe if