Write comments to file