Added methods for line/rectangle intersection.
Better CalloutBox positioning.