Fixed errors in NODE_ID definition, some memcpy sizes