Write domain documentation