Added some graphing functions