Make progress on user-friendly and fast tree code