add: afd_connect macro added, and some code and header comments  changed.
change: arguments of afd_watch and afd_unwatch changed, and afd_nwatch and afd_unnwatch added.