added output plot scripts and plots, densities and traces