Improve REPL server and window