Added legend to connectivity matrix
Removed some code
Fixed layout