modified decoding from spline to consider 1 field linear in a, also some other small fixes