fixed switch-do structure in MPEndReceiver
corrected comments in fn_mpend