o Update comments.
o Make ToneGen a namespace of functions instead of a class with
  essentially static methods.
o Make TerminalStub an interface. That way, we can write unittests.