Improved install routine
Added logic to uninstall and update repo