added sync functionality
Merge branch 'master' of https://github.com/TheoT/OJFinal
workeddd