converted to functions: branch, checkout
added branch-cleanup and commit to core functions