finished draft #1 of bluetooth api