Adding initialization period for switch before others can use it.
Added more states to state transition diagram.
Wait to send port stats message a fixed amount of time, so can be sure that all loopback ports have already been added to the switch.