add linear interpolation, interplin
remove some dead code
update