Fixed a few minor things in commit.py and called a new funtion in example.py