output comments to text files