Did optimization to the localToGlobal function. Added Rectangle.toString().