Issue 39: Storing commit state to avoid rerunning tests
Additional functionality for commit.rb

Issue #39