updated deploy script to deploy specific versions and output error messages for incorrect params.