added basic sync
Merge pull request #1 from jerechua/sync

added basic sync