create class Config and add function config and info

Upgrade class Config