Added a simple repl to batch mode