github api mostly integrated, closes #1