fixed readme and demo for set_value function, changed lerp function to use the mean of the n last frames