fixed: wrong setting of connections when applying EMPTY
started changing to reading the matrices out of files