update usage and introduction
modify the internal structure of the switch and port config, adding some sample tests