Added target directory where to clone the repository.
Added revert to the parent directory procedure in cases the given directory is invalid.
Added check to urls if it is using http* protocols.