Change CLI into a REPL and add quit option