Changed commit.py to vcs.py; added error checking