semplified scrollfold.m, removed the code for the mean inside it