added plot outputs and better plots.