Added split-repo.sh and modified some scripts