Added several function key processing; Added function gui_stop/gui_wait; Added mutex initialization;