add comments
Move test logic out of main lib/git-hub