[bugfix,documentation] 'root' is an input argument, not an output one