Add a simple GUI

use -g option to enable GUI