* Small code cleanups and a bit of internal documentation.