Greatly improved the bluetooth functionality.

Although it is still not 100% stable (what is?). most of the bugs seem to be gone. It works more often than not, at least, which is good.
Everything so far is documented, as well.