LS: new error metric, options for sensor sampling, option for x0