Add debug for nodes

Add debug functions to display all the commands that it has to follow