apply doxygen format to sync.h and change license