Implement ability to embed/compose documents, add test