Updated so that when an error found opening the node or od matrix file, ...

...it

quits the program after printing an error.