added functionality to Graph() and getCost().
added functionality for addEdge() and removeEdge().
answered all the questions on the readme.