fixes and added graphing of results