added getCommits code
Merge pull request #5 from scottnath/adding-getcommits

added getCommits code