Bug fixes for APIs
Update Github API to write new commits to file