adding interpolating capability to compute error
updated documentation