Final version

Allowed storing all the error values in an error vector e_k