Fixes and features

Added options for selecting BT device and refresh time interval. Fixed numerous bugs.