fix bugs, ncm tree fully functional, 1st tests