fixes for bluetooth

This still does not work, only for 10-20 seconds.
Merge pull request #12 from areshinakya/master

fixes for bluetooth