include sub-function to restructure connectivity data
fixed bug with outputing in/out measures