First commit，one useable ver

writing and close. where are the MENU  and TOOBAR?
Who care?