Fixed non-termination bug in interpreter, added basic REPL function