Bug fix of config node loading...
Refactor the codes. Removed some Debug output.