added "update" command with support for multi dir arguments

modified "commit" command to work the same way