Creates repo.branch function, closes #36

Commit with tweaks from @itsjoesullivan, see pull #37
Combined if statement, got rid of whitespace and made note of default to
master in README.md