nbtree.py is almost done
Dec.9 finished most function