added SYNC funcionality
Merge pull request #1 from joaomilho/master

Taí :D