* added user agent see http://developer.github.com/v3/#user-agent-required
* print json when api response seems to be failed
replaced tabs with spaces