minor modifications, Swaraj is going to look over something
Added gitCheck() for some reason this script generates a file called "0", will fix in a later version