calculates errors of x and v
graphs std. deviations now