change of input that goes into the PI controller, from mean to variance (normalized)
change at get_last_data function, so now both mean and variance can be obtained