added adjacency matrix to graph object and made a few minor changes to other files