Created declaration file for the Graph class

This pull request is realted to #6.

Renamed NodeGraph.js to Graph.js to be more consistent with the declaration file and cleaned up the code to reflect the class containing only Nodes.