bug fixes to edf2mef.c