Fixed a few bugs and added github API token usage