Added TRACE level debugging
fixed bug in create_node