plots code and png files

added code for generating plots.