add ability to pass data to sync method
Merge pull request #3 from freakycue/master

add ability to pass data to sync method