Update start.sh

Added more factoring and more errors.