Added other files and changed graph interface to class