repl will now let you continue lines.
optimizations and cleanup.