Improved error handling and refactored a bit
Implemented github-sync.rb