added several functions in emulink module, also, a few of modifications in html to add buttons 'undo' and 'redo'