Updated the code as instructed, cleaned up formatting and tightened things up.
Added github data to the config-sample.json, updated getStats to send the oauth token in the api request headers.