Adding a SpaceDocumentWriter class and a companion object for AppSettings.