Resolved the exit issue. Added a basic class for the GUI.