Added some error stuff and added a line to remove the current .git folder before initializing a new one