added jna libs
removed unecessary free operation
added function to buckle bspline
removed unused lib