Moved some of the gui stuff out of core, removed use of parallell arrays, which I cannot even spell correclty