Added Rect class and edited some comments on IWidget