split lines, unwrap and fix some of the formatting

no code change.

some comments are not clear whether they affect more than one line.