created CommitHandler to handle the process of creating a new commit/version