doxygenate; fix write method example