debugged, lindex changed to lrange
script to plot histogram over some data
hist script added to calculate hist data and save them into file