Added log debug messages throughout the code.
Bugfixes in is_connected and get_uuid methods.