jsdoc
better response handling on document level #29
added test for document save