added some comments, rewrote tests
test branch edit
Revert "test branch edit"

This reverts commit 7e545e21a9e212477bc2bd1d949a36da3bcd1298.
Merge pull request #1 from raymondgh/master

added some comments, rewrote tests