removed unused code
Added console output to the GUI