Added a so far primitive optional gui and did some fixes