added plot and updated latex