More comments & Better  handling of the GUI  in main()