Udated tree node function registration for required commands to not
require functions for header only nodes and header nodes with optional
children
Updated requredCmds registration comments