Update QuardTree, Animation
-make functions more robust
-added lock for sync purpose