Implemented the stats command, at least partially.
Implemented the quit command.
Implemented EOT (control-D).