tidy up + implemented float version of multidim dbn