Add repo syncing
Add origin control
Small refactoring
Refresh after syncing