Added documentation to sync.
Added some more documentation