Added the GUI module and the Window class. Made a few fixes for coherence.