Refactor, start/stop gui, workflow import