Fix memory leak in Unity Editor
Improve tools and some bugfix