clean code and change bp code,fix compass driver