Fix issue with Activator.CreateInstance in NodeFactory, clean up and comment NodeFactory