updates to doc-deploy.sh script for error trapping, etc.