changed graphing abilities to a function and added in graph calls for other data the client needs