Added standard deviation bar, deleted unnecessary code