improved draw_cmd function
improved file open/close dialog
added page_up and page_down functions
page up/down now handles tabs
removed syntax var