Improved git clone and checkout logic
Updated gitignore