Modified grid-single-node-matlab.sh to email when the job is done.
Updated grid-single-node-matlab.sh to skip matlabpool for single processor environments and to validate the NSLOTS environment variable.