Fixed #11

Use document.SaveAs instead of SaveAs2, since the latter doesn't exist
for Office 2007.
Added more detailed error reporting.