some ajustements to bt_lib
 finishing toches to bt_lib
integration of bt into main module