added code from cubature, and minimal wrap example
rm useless files