fixed logical errors in graph and added table data