Ability to create NodesCache instances
TreeManager code and spec refactored with ability to create instances
little fix