Added option to expand node from the beginning
Added prototype to add color according to the node type