add commit method
Merge pull request #16 from p1tz/master

merge