Fixed a few minor things in commit.py and called a new funtion in example.py
Merge pull request #2 from sucheta92/master

Fixed a few minor things in commit.py and called a new funtion in exampl.. 
changed files example.py, savetofile.py, commit.py