Further cleaning and commenting. Fixed bug in ReDraw function of GuiLoader