Implove REPL
REPL Use rlwrap if available.
Fix bugs, improve REPL around printing multiple values.