Added sync command

Added sync command to partially fixed issue #84