Moved sync into its own module
Merge pull request #10 from cndreisbach/master

Move sync into its own module