Formatted the console output and the GUI