Adding the gui and changing old functions to fit new gui behavior
more change
Another initial commit