Slight syntactic cleanup
Generalise lexer → scanner functions.

I stick module documentation in things I touched.