improved editor menu in Emulink + code cleanup