added support to private documents
implemented private documents
implemented document settings dialog