Lib update
better makefile
Add a coe2 function.