Fix related documents linking.
Don't clone cloned guy.
Merge pull request #54 from flyvictor/fix-compound-document-creation

Fix compound document creation