Added comments to sync.h to make it easier to understand what the macros do.