Add doc comments in text_writer