Auto generate ID for nodes and updated example