Bug fix for error calculations and changes in graph output.