implemented the update command to update the local repository from the remote sources