Preparing intefaces for GUI

created debug flag = 11 to correspond to function being run via GUI.