Added sync and pull commmands, as well as new configuration parameter, root_dir