Corrected a memory allocation problem. Program works correctly. Only UI
and Bluetooth connection manager needs improvement.