Added comments to create / kill threads.
Added new logging interface.

The old one was clumsy and relied heavily on local instantiations of
stringstream.