adjust and more readable
make control ip is argv[1] and must be given
add some debug info
comment the getSwitchStatistics() method for test