Added a GUI and added more comments