updated to allow domain to be specified (needed for enterprise github accounts)
fixed some bugs, updated sanity checks, and updated README.md