edit print function for the tree structure, now script-parts can hide from the output
adding function to get Root-Node
edit comment
add missing return
adding part of sensor-handling code