added script to create plot on a step basis
updated algorithms :now keeping results for steps as well
minor updates