BROKEN CODE. Fixes many small bugs with the Sector module. Adds the external neighbor connection logic for the Sector module.