added comments to config and registry classes