Fix a bug in Node gen. Crucial one. And Change the output format.