Added links to entities.  Modified main to illustrate their usage in
creating a network topology.  Implemented handling of SwitchUp and
SwitchDown events.  Changed some names in main to be more descriptive.