add sync
updating jsdoc and readme for sync