Added problems checking in documentSave operation
Fixed warnings in new exceptions