Replace call to save with saveAs to save the document.

Fixed the sample to match the new API.
Fixed the name of the output file to Sample_07... to match to sample number.