Typo.
Rewrote repl as a server/client interface.
Added tests.