fix for Array Subscript compiler warning # 164

As discussed in the issue #164  and  #176 , I made the modification in the daemon and controller to find the *unique daemon* by using **UUID** . I didn't used the `uuid_generate_time_safe()`  to generate UUID, because it is not supported by latest libuuid  in FreeBSD. Also added Doxygen comments is all functions, which are modified.
Missing {}