Just before changing mod.c** to vectors. Have split the program into two main ( extract and interpolate ).