added the possibility to use indices instead of scrollfold, fixed a little bug with n_task_instances in icub experiment