fixes bug in queryPoint function, adds comments to quadtree functions