updated Emulink GUI and code cleanup