Made Some small adjustments on the QuadTree code