simulated repl interaction

need to break apart big go-loop and handle whitespace better