Added generate-coords and linear-interpolate functions