Finish read-write operations

Reading-writing operations is fully available now. Also with exception.
Document id is unique now.  Next - list of docs on main form, editing.