For your baseline, cover the detector with a beam block, and record a spectrum. This will be your baseline.
For normalizing a spectrum, simply:
maxval=max(spectrum1);
spectrum1_normalized=spectrum1/maxval; %the max value will be 1, and the rest of the spectrum will be scaled appropriately.