rm code about reading config from config.properties;
some code reformat;