Revise some functions in IO and Rtree. The quadtree cannot work yet.