update plot, fix some small errors