Better save documents code
Updating examples