updated code

added new scripts for plotting a bar chart