Added complete interpolation function
Edited the flux function