adapted to github api
Merge pull request #13 from wick-ed/master

adapted to github api