Exercise 1.16

"Revise the main routine of the longest-line program so it will
correctly print the length of the arbitrarily long input lines, and as
much as possible of the text" - also some minor tidy-up