Add bdiff
Add h2d and d2h
add some stuff