minor changes to text and code comments