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

...e.py