Modified RegistryNode to make it thread-safe. Code cleanups and code comment review.