fixed commit.py, added example