Filter rework
First working version with filter
Added node_name function
Changed tree implementation